<?php
/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Education
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
?>

  <div class='education_view<?php if ($this->education->featured):?> education_featured_entry<?php endif;?>'>
    <h2>
      <?php echo $this->translate('%s\'s Education', $this->owner->__toString())?>
    </h2>
  
    <h3>
      <?php echo $this->education->getTitle() ?>
    </h3>
    
    <?php if ($this->education->getDescription()): ?>
      <div class="education_body">
        <?php echo nl2br($this->education->getDescription()) ?>
      </div> 
    <?php endif; ?>
    <div class="profile_fields">

      <h4>
        <span><?php echo $this->translate('Attendance Information');?></span>
      </h4>
      <ul>
          <li>
            <span><?php echo $this->translate('School Type')?></span>
            <span><?php echo $this->translate($this->education->getCategory()->getTitle()); ?></span>
          </li>
        <?php if ($this->education->class_year): ?>
          <li>
            <span><?php echo $this->translate('Class Year')?></span>
            <span><?php echo $this->education->class_year; ?></span>
          </li>
        <?php endif;?>
        <?php if ($this->education->concentration): ?>
          <li>
            <span><?php echo $this->translate('Concentration')?></span>
            <span><?php echo $this->education->concentration; ?></span>
          </li>
        <?php endif;?>
        <?php if ($this->education->minor): ?>
          <li>
            <span><?php echo $this->translate('Minor')?></span>
            <span><?php echo $this->education->minor; ?></span>
          </li>
        <?php endif;?>
        <?php if ($this->education->degree): ?>
          <li>
            <span><?php echo $this->translate('Degree')?></span>
            <span><?php echo $this->education->degree; ?></span>
          </li>
        <?php endif;?>
      </ul>
      <?php if ($education_field_values = $this->fieldValueLoop($this->education, $this->fieldStructure)): ?>
        <h4>
          <span><?php echo $this->translate('Other Details');?></span>
        </h4>
    	  <?php echo $education_field_values; ?>
      <?php endif; ?>
    </div>
  </div>